package com.yuanhua.sim.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuanhua
 * @since 2022-08-03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("im_group_msg_content")
@ApiModel(value = "GroupMsgContent对象", description = "")
public class GroupMsgContent extends Model<GroupMsgContent> {

    private static final long serialVersionUID = 1L;

    @TableId("mid")
    private String mid;

    @ApiModelProperty("消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("发送人")
    @TableField("sender_id")
    private Long senderId;

    @ApiModelProperty("群id")
    @TableField("gid")
    private Long gid;

    @ApiModelProperty("消息类型")
    @TableField("msg_type")
    private Integer msgType;

    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.mid;
    }

}
